﻿<%@ Page Title="" Culture="en-US" Language="C#" MasterPageFile="~/home.master" AutoEventWireup="true" CodeFile="sentEcard.aspx.cs" Inherits="sentEcard" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="Css/viewCard.css" rel="stylesheet" />
    <link href="Css/sentCard.css" rel="stylesheet" />
    <style type="text/css">
        .auto-style1 {
        }
        .auto-style2 {
            width: 14px;
        }
        .auto-style3 {
            text-align: center;
        }
        .auto-style4 {
            width: 28px;
        }
        .auto-style5 {
            width: 8px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="navigation_center"><a href="#">Home</a></div>
    <div class="box_main">
        <div class="title">
            <div class="title_img1"></div>
            <div class="title_img2">
                <p>Sent Ecard</p>
            </div>
            <div class="title_img3"></div>
            <div class="title_img4"></div>
            <div class="title_img5"></div>
        </div>
        <div class="info">
            <div class="info_img1"></div>
            <div class="info_img2">
                <p>infomation</p>
            </div>
            <div class="info_img3"></div>
            <div class="info_img4"></div>
        </div>
        <div class="sent_info">
           
            <table style="width: 98%; color: #129b3a;">
                <tr>
                    <td>&nbsp;</td>
                    <td class="auto-style1" colspan="4">
                        <asp:Label ID="lblInfo" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                    <td class="auto-style5">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td class="auto-style1" colspan="4">
                        &nbsp;</td>
                    <td class="auto-style5">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>Name Sender :</td>
                    <td class="auto-style1">
                        <asp:TextBox ID="txtNameSender" runat="server" Width="190px" Height="25px"></asp:TextBox>
                    </td>
                    <td class="auto-style4">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNameSender" ErrorMessage="*" ForeColor="#CC0000"></asp:RequiredFieldValidator>
                    </td>
                    <td class="auto-style3">
                        Name Receiver:</td>
                    <td class="auto-style2">
                        <asp:TextBox ID="txtNameReceiver" runat="server" Width="190px" Height="25px"></asp:TextBox>
                    </td>
                    <td class="auto-style5">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtNameReceiver" ErrorMessage="*" ForeColor="#CC0000"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>Email Sender :</td>
                    <td class="auto-style1">
                        <asp:TextBox ID="txtEmailSender" runat="server" Width="190px" Height="25px"></asp:TextBox>
                    </td>
                    <td class="auto-style4">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEmailSender" ErrorMessage="*" ForeColor="#CC0000"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmailSender" ErrorMessage="*" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                    <td class="auto-style3">
                        Email Receiver:</td>
                    <td class="auto-style2">
                        <asp:TextBox ID="txtEmailReceiver" runat="server" Width="190px" Height="25px"></asp:TextBox>
                    </td>
                    <td class="auto-style5">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtEmailReceiver" ErrorMessage="*" ForeColor="#CC0000"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtEmailReceiver" ErrorMessage="*" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td>Title Card :</td>
                    <td class="auto-style1">
                        <asp:TextBox ID="txtTitle" runat="server" Width="190px" Height="25px"></asp:TextBox>
                    </td>
                    <td class="auto-style4">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtTitle" ErrorMessage="*" ForeColor="#CC0000"></asp:RequiredFieldValidator>
                    </td>
                    <td class="auto-style3" colspan="2">
                        <asp:Button ID="btnAddReceiver" runat="server" BackColor="#FF6600" ForeColor="White" Text="Add Receiver" OnClick="btnAddReceiver_Click" />
                    </td>
                    <td class="auto-style5">&nbsp;</td>
                </tr>
                <tr>
                    <td>Message :</td>
                    <td class="auto-style1">
                        <asp:TextBox ID="txtMessage" runat="server" Height="54px" TextMode="MultiLine" Width="190px"></asp:TextBox>
                    </td>
                    <td class="auto-style4">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtMessage" ErrorMessage="*" ForeColor="#CC0000"></asp:RequiredFieldValidator>
                    </td>
                    <td class="auto-style3" colspan="2" rowspan="3">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
                            <Columns>
                                <asp:BoundField DataField="Name" HeaderText="Name Receiver" />
                                <asp:BoundField DataField="Email" HeaderText="Email Recevier" />
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:Button ID="Button1" runat="server" Text="Delete" OnClick="Button1_Click" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                    <td class="auto-style5">&nbsp;</td>
                </tr>
                <tr>
                    <td>Signature :</td>
                    <td class="auto-style1">
                        <asp:TextBox ID="txtSignature" runat="server" Width="190px" Height="25px"></asp:TextBox>
                    </td>
                    <td class="auto-style4">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtSignature" ErrorMessage="*" ForeColor="#CC0000"></asp:RequiredFieldValidator>
                    </td>
                    <td class="auto-style5">&nbsp;</td>
                </tr>
                <tr>
                    <td>Date Send :</td>
                    <td class="auto-style1">
                        <asp:TextBox ID="txtDateSent" runat="server" Width="190px" Height="25px" ReadOnly="True"></asp:TextBox>
                        <asp:Calendar ID="Calendar1" runat="server" BorderStyle="None" CaptionAlign="Top" ClientIDMode="AutoID" BackColor="White" BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" ShowGridLines="True" Width="190px" OnSelectionChanged="Calendar1_SelectionChanged" OnDayRender="Calendar1_DayRender">
                            <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                            <NextPrevStyle VerticalAlign="Bottom" />
                            <OtherMonthDayStyle ForeColor="#808080" />
                            <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                            <SelectorStyle BackColor="#CCCCCC" />
                            <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                            <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                            <WeekendDayStyle BackColor="#FFFFCC" />
                        </asp:Calendar>
                    </td>
                    <td class="auto-style4">
                        &nbsp;</td>
                    <td class="auto-style5">&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <asp:Button ID="btnReview" runat="server" Text="Review" ForeColor="White" BackColor="#FF6600" OnClick="btnReview_Click" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnSent" runat="server" Text="Sent" BackColor="#FF6600" ForeColor="White" Width="64px" OnClick="btnSent_Click" />
                    </td>
                    <td style="text-align: center" class="auto-style4">
                        &nbsp;</td>
                    <td style="text-align: center" class="auto-style3">
                        &nbsp;</td>
                    <td style="text-align: center" class="auto-style2">
                        &nbsp;</td>
                    <td class="auto-style5">&nbsp;</td>
                </tr>
            </table>
        </div>
    </div>
    <div id="display_ecard">
        <div id="vien_top"></div>
        <div id="vien_left"></div>
        <div id="vien_center">
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <div id="title">Title</div>
                    <div id="ecard">
                        <object width="790" height="282">
                            <embed src="<%#Eval ("urlFlash") %>" width="500" height="400" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false" wmode="transparent">
                            </embed>
                        </object>
                    </div>
                    <div id="name"><%#Eval("ecardName") %></div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <div id="vien_right"></div>
        <div id="vien_bottom"></div>
    </div>
    
</asp:Content>

